a52979f63f44730f97f729866d01cfbefc588337,subprojects/core/src/main/groovy/org/gradle/internal/filewatch/DefaultFileWatcherFactory.java,DefaultFileWatcherFactory,createFileWatcher,#,38
Before Change
throw new RuntimeException("Cannot find constructor in FileWatcher class", e);
}
try {
return Cast.uncheckedCast(constructor.newInstance(executor));
} catch (Exception e) {
throw new RuntimeException("Cannot instantiate FileWatcher implementation", e);
}
After Change
} catch (ClassNotFoundException e) {
throw new RuntimeException("Cannot find FileWatcher implementation class", e);
}
return Cast.uncheckedCast(DirectInstantiator.instantiate(clazz, executor));
} else {
throw new RuntimeException("FileWatcher is only available on Java 7 compatible JVMs");
}